<%--
  Created by IntelliJ IDEA.
  User: Lenovo
  Date: 2024/10/7
  Time: 17:25
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    Boolean ifLogin = (Boolean) session.getAttribute("ifLogin");
%>

<% if(ifLogin == null || !ifLogin) {
    request.setAttribute("Info", "未登录，请登录！");
    request.getRequestDispatcher("login.jsp").forward(request, response);
}
%>

<html>
<head>
    <title>Title</title>
</head>
<body>
<form action="addMessageServlet" method="post">
    标题<input type="text" name="title"> <br>
    留言内容 <br>
    <textarea name="content"></textarea> <br>
    <input type="submit" value="添加">
</form>

</body>
</html>
